package com.frkj.yuan.activity;

import android.view.View;
import android.widget.TextView;

import androidx.core.content.ContextCompat;

import com.frkj.yuan.R;
import com.frkj.yuan.base.BaseActivity;
import com.frkj.yuan.dialog.UnbindCardDialog;
import com.frkj.yuan.utils.FullScreenUtils;

import butterknife.BindView;
import butterknife.OnClick;
import cn.ycbjie.ycstatusbarlib.bar.YCAppBar;

/**
 * 信息说明:解除绑定银行卡界面
 * company: 兰州丰荣信息科技有限公司
 * 创建时间: on 2022/3/11 10 ：24
 * 项目名称：yuanban
 */
public class UnBindCardActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.base_title)
    TextView mTitleMsg;
    private UnbindCardDialog dialog;

    @Override
    public int getLayoutId() {
        return R.layout.activity_unbind_card;
    }

    @Override
    public void initLayoutView() {
        mTitleMsg.setText("解绑银行卡");
        FullScreenUtils.getInstance().fullScreen(UnBindCardActivity.this,true);

    }

    @OnClick({R.id.base_back, R.id.unbind_card})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.base_back:
                finishWitchAnimation();
                break;
            case R.id.unbind_card:
                SelectUnBindCard();
                break;
        }
    }

    private void SelectUnBindCard() {
        dialog = new UnbindCardDialog(UnBindCardActivity.this);
        dialog.show();
        dialog.findViewById(R.id.zan_bind).setOnClickListener(this);
        dialog.findViewById(R.id.submit_unding).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.zan_bind:
                dialog.dismiss();
                break;
            case R.id.submit_unding:
                dialog.dismiss();
                break;
        }
    }
}
